import { Message, MessageBox } from 'element-ui'

export function IMessage({message, type = 'info', duration = 1500, showClose = true}){
    return Message({
        message: message,
        type: type,
        duration: duration,
        showClose: showClose
    })
}

export function IMessageBox({message, title = '提示', type = 'info', confirmButtonText = '确定', cancelButtonText = '取消'}){
    return MessageBox.confirm(message, title, {
        type: type, 
        confirmButtonText: confirmButtonText, 
        cancelButtonText: cancelButtonText
    })
}
